<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ taglib prefix="t" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<title>我的帖子</title>

<head>
	<meta charset="utf-8" />
	<link rel="stylesheet" href="${pageContext.request.contextPath}/static/css2/index.css" />
	<link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/slider-photos.css" />
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/jquery3.5.1.js"></script>

</head>

<body>
<div style="margin:0 auto;width:0px;height:0px;overflow:hidden;"></div>

<nav id="top-nav" style="margin-left: 50px">
	<form method="GET" name="frmKey" action="${pageContext.request.contextPath}/message/findMessageById">

		<div class="wrapper" >
			<div class="inner-wrapper">

<%--				<div class="search-box bdwm-search-box" style="padding-left: 0">--%>

<%--					<input class="search-ipt" type="text" name="messageName" placeholder="搜索我的帖子名称" autocomplete="on">--%>

<%--					<img onclick="javascript:sss();" src="${pageContext.request.contextPath}/static/img/iconfont-sousuo.png" class="search-btn">--%>

<%--					<ul class="search-result box-shadow keywords-result">--%>
<%--					</ul>--%>
<%--					<ul class="search-result box-shadow history-result">--%>
<%--					</ul>--%>
<%--				</div>--%>
				<div class="top-right-links">
					<a href="${pageContext.request.contextPath}/page/index">返回主页  </a>
					<a href="${pageContext.request.contextPath}/user/outLogin">  退出登录</a>
				</div>

			</div>
		</div>

	</form>
	<script language="javascript">
		function sss() {
			frmKey.submit();
		}
	</script>

</nav>


<%--我的帖子 --%>
<div id="page-content" style="padding-left: 50px ">


		<div class="hdic" >

			<table class="biao" >
				<tbody>
				<tr>
					<th colspan="2">我的帖子
					</th>
				</tr>


				<t:choose>
					<t:when test="${messageList.size()>0}">
						<tr>
							<td align="left" width="150">
								<div class="bktu">
									<a title="“世界长大了，我他妈也老了”" href="post.asp?bd=32&amp;id=36531&amp;totable=1">
										<img src="http://www.thubbs.cn/up/1-20141021160241-613.jpg"></a>
								</div>
							</td>
							<td align="left" valign="top" class="fz14">
								<a title="“”" href="${pageContext.request.contextPath}/message/findMessageById?messageID=${messageList.get(0).messageID}">
										${messageList.get(0).messageName}
								</a>
								<div class="itjj" >
<%--									<font class="ds fz12">内容简介</font> <br>--%>
									<br>
									<font class="ds fz12">${messageList.get(0).postingTime}</font> <br>
									<a title="“”" class="ds fz12" href="${pageContext.request.contextPath}/message/findMessageById?messageID=${messageList.get(0).messageID}&flag=update">
										修改
									</a>
									<br><br>
									<a title="“”" class="ds fz12" href="${pageContext.request.contextPath}/message/deleteMessage?messageID=${messageList.get(0).messageID}">
										删除
									</a>
								</div>
							</td>

						</tr>
					</t:when>
					<t:otherwise>
						<tr>
							<td align="left" valign="top" class="fz14">
								还没有发帖
							</td>
						</tr>
					</t:otherwise>
				</t:choose>
				<t:choose>
					<t:when test="${messageList.size()>1}">

						<tr>
							<td align="left" width="100">
								<div class="bktu">
									<a title="" href="post.asp?bd=41&amp;id=53154&amp;totable=1">
										<img src="http://www.thubbs.cn/up/42164-201633184259-685.jpg"></a>
								</div>
							</td>
							<td align="left" valign="top" class="fz14">
								<a title="“”" href="${pageContext.request.contextPath}/message/findMessageById?messageID=${messageList.get(1).messageID}">
										${messageList.get(1).messageName}
								</a>
								<div class="itjj" >
										<%--									<font class="ds fz12">内容简介</font> <br>--%>
									<br>
									<font class="ds fz12">${messageList.get(1).postingTime}</font> <br>
									<a title="“”" class="ds fz12" href="${pageContext.request.contextPath}/message/findMessageById?messageID=${messageList.get(1).messageID}&flag=update">
										修改
									</a>
									<br><br>
									<a title="“”" class="ds fz12" href="${pageContext.request.contextPath}/message/deleteMessage?messageID=${messageList.get(1).messageID}">
										删除
									</a>
								</div>
							</td>

						</tr>
					</t:when>
				</t:choose>
				<t:choose>
					<t:when test="${messageList.size()>2}">
						<tr>
							<td align="left" width="100">
								<div class="bktu">
									<a title="施一公∣学生如何提高专业英文阅读能力" href="post.asp?bd=41&amp;id=53156&amp;totable=1">
										<img src="http://www.thubbs.cn/up/42164-201633184940-781.jpg"></a>
								</div>
							</td>
							<td align="left" valign="top" class="fz14">
								<a title="“”" href="${pageContext.request.contextPath}/message/findMessageById?messageID=${messageList.get(2).messageID}">
										${messageList.get(2).messageName}
								</a>
								<div class="itjj" >
										<%--									<font class="ds fz12">内容简介</font> <br>--%>
									<br>
									<font class="ds fz12">${messageList.get(2).postingTime}</font> <br>
									<a title="“”" class="ds fz12" href="${pageContext.request.contextPath}/message/findMessageById?messageID=${messageList.get(2).messageID}&flag=update">
										修改
									</a>
									<br><br>
									<a title="“”" class="ds fz12" href="${pageContext.request.contextPath}/message/deleteMessage?messageID=${messageList.get(2).messageID}">
										删除
									</a>
								</div>
							</td>

						</tr>
					</t:when>
				</t:choose>
				<t:choose>
					<t:when test="${messageList.size()>3}">
						<tr>
							<td align="left" width="100">
								<div class="bktu">
									<a title="筑梦∣巴厘岛的深山里，有一座竹的天堂" href="post.asp?bd=51&amp;id=53140&amp;totable=1">
										<img src="http://www.thubbs.cn/up/42164-201633183033-796.jpg"></a>
								</div>
							</td>
							<td align="left" valign="top" class="fz14">
								<a title="“”" href="${pageContext.request.contextPath}/message/findMessageById?messageID=${messageList.get(3).messageID}">
										${messageList.get(3).messageName}
								</a>
								<div class="itjj" >
										<%--									<font class="ds fz12">内容简介</font> <br>--%>
									<br>
									<font class="ds fz12">${messageList.get(3).postingTime}</font> <br>
									<a title="“”" class="ds fz12" href="${pageContext.request.contextPath}/message/findMessageById?messageID=${messageList.get(3).messageID}&flag=update">
										修改
									</a>
									<br><br>
									<a title="“”" class="ds fz12" href="${pageContext.request.contextPath}/message/deleteMessage?messageID=${messageList.get(3).messageID}">
										删除
									</a>
								</div>
							</td>

						</tr>
					</t:when>
				</t:choose>
				<t:choose>
					<t:when test="${messageList.size()>4}">
						<tr>
							<td align="left" width="100">
								<div class="bktu">
									<a title="你不抛弃自己，没有人能抛弃你" href="post.asp?bd=39&amp;id=36528&amp;totable=1">
										<img src="http://www.thubbs.cn/up/1-20141021150404-706.jpg"></a>
								</div>
							</td>
							<td align="left" valign="top" class="fz14">
								<a title="“”" href="${pageContext.request.contextPath}/message/findMessageById?messageID=${messageList.get(4).messageID}">
										${messageList.get(4).messageName}
								</a>
								<div class="itjj" >
										<%--									<font class="ds fz12">内容简介</font> <br>--%>
									<br>
									<font class="ds fz12">${messageList.get(4).postingTime}</font> <br>
									<a title="“”" class="ds fz12" href="${pageContext.request.contextPath}/message/findMessageById?messageID=${messageList.get(4).messageID}&flag=update">
										修改
									</a>
									<br><br>
									<a title="“”" class="ds fz12" href="${pageContext.request.contextPath}/message/deleteMessage?messageID=${messageList.get(4).messageID}">
										删除
									</a>
								</div>
							</td>

						</tr>
					</t:when>

				</t:choose>



				</tbody>
			</table>
			<div class="hgg"></div>

		</div>







	</div>

</div>


</body>

</html>